import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:syn_4s/core/extension/build_context_extension.dart';
import 'package:syn_4s/ui/pages/base/base_screen.dart';
import 'package:syn_4s/ui/pages/setting/language_content.dart';
import 'package:syn_4s/ui/pages/setting/setting_content.dart';

import '../../../core/viewmodel/change_language_view_model.dart';
import '../../../core/viewmodel/setting_view_model.dart';

class LanguageScreen extends BaseScreen {
  static const String routeName = "/language";

  const LanguageScreen({super.key});

  @override
  String title(BuildContext context) {
    return context.l10n.language;
  }

  @override
  Widget body(BuildContext context) {
    ChangeLanguageViewModel vm = ChangeLanguageViewModel();
    vm.init(context);
    Get.put(vm);
    return LanguageContent();
  }
}
